<%= select_f f, :type, compute_resource.nictypes, :first, :last, { },
    :class => "col-md-3 vmware_type",
    :size => "col-md-8", :disabled => !new_vm,
    :label => _('NIC type'), :label_size => "col-md-3" %>
<% cluster_id = params.fetch(:host, {}).fetch(:compute_attributes, {}).fetch(:cluster, nil).presence %>
<%= select_f f, :network, vsphere_networks(compute_resource), :first, :last, { },
             :class => "col-md-3 vmware_network",
             :size => "col-md-8", :disabled => !new_vm,
             :label => _('Network'), :label_size => "col-md-3" %>
